package com.example.his.api.mis.controller;

import com.example.his.api.common.R;
import com.example.his.api.mis.service.RoleService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author huixh
 */
@RestController
@RequestMapping("/mis/role")
public class RoleController {
    @Resource
    private RoleService roleService;

    @GetMapping("/selectAllRole")
    public R selectAllRole()
    {
        return R.resultOk().put("list", roleService.selectAllRole());
    }
}
